﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;

namespace ThreeDContentPipeline
{
    public class BatchContent
    {
        private static readonly VertexElement[] VertexElements = new VertexElement[] {
            new VertexElement(0, VertexElementFormat.Vector3, VertexElementUsage.Position, 0),
            new VertexElement(12, VertexElementFormat.Vector3, VertexElementUsage.Normal, 0),
            new VertexElement(24, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 0),
            new VertexElement(32, VertexElementFormat.Vector2, VertexElementUsage.TextureCoordinate, 1)
        };

        public ExternalReference Texture1;
        public ExternalReference Texture2;

        public BatchContent()
        {
            Texture2 = null;
            VertexBuffer = new VertexBufferContent(VertexElements);
            IndexBuffer = new IndexBufferContent();
        }

        public VertexBufferContent VertexBuffer
        {
            get;
            private set;
        }

        public IndexBufferContent IndexBuffer
        {
            get;
            private set;
        }
    }
}
